<template>
	<navbar title="常见问题" :isBack="true"></navbar>
	<view class="" style="margin-top: 10rpx;width: 100%;">
		<view class=""
			style="width: 100%;display: flex;justify-content: space-between;align-items: center;padding: 30rpx;border-bottom: 1rpx solid #F9F9F9;"
			@tap="detail(item.id)" v-for="item in list">
			<view class="">
				{{list.length}}.{{item.title}}
			</view>
			<view class="">
				<u-icon name="arrow-right"></u-icon>
			</view>
		</view>
	</view>
</template>

<script setup lang="ts">
	import {
		onLoad,
		onShareAppMessage,
		onShareTimeline,
		onReachBottom
	} from '@dcloudio/uni-app'
	import { helpList } from '@/service/api/index'
	import {
		reactive,
		ref
	} from 'vue'
	import tools from '@/utils/tools'
	const list = ref([]) as any
	onLoad(() => {
		getData()
	})
	const getData = async () => {
		const res = await helpList("");
		list.value = res.msg.data;
	}
	const detail = (id) => {
		tools.navTo('/pagesA/problem/detail?id=' + id)
	}
</script>

<style scoped lang="scss">
</style>